import com.genexus.*;
import com.genexus.ui.*;

public final class subwmntcmb04 extends GXSubfileElement
{
   private byte VSel ;
   private int CmbCod ;
   private String CmbNom ;
   private String CmbEst ;
   private String CmbUCR ;
   private java.util.Date CmbFCR ;
   private String CmbHCR ;
   private String CmbUUM ;
   private java.util.Date CmbFUM ;
   private String CmbHUM ;
   private byte VEdoant ;
   public byte getVSel( )
   {
      return VSel ;
   }

   public void setVSel( byte value )
   {
      VSel = value;
   }

   public int getCmbCod( )
   {
      return CmbCod ;
   }

   public void setCmbCod( int value )
   {
      CmbCod = value;
   }

   public String getCmbNom( )
   {
      return CmbNom ;
   }

   public void setCmbNom( String value )
   {
      CmbNom = value;
   }

   public String getCmbEst( )
   {
      return CmbEst ;
   }

   public void setCmbEst( String value )
   {
      CmbEst = value;
   }

   public String getCmbUCR( )
   {
      return CmbUCR ;
   }

   public void setCmbUCR( String value )
   {
      CmbUCR = value;
   }

   public java.util.Date getCmbFCR( )
   {
      return CmbFCR ;
   }

   public void setCmbFCR( java.util.Date value )
   {
      CmbFCR = value;
   }

   public String getCmbHCR( )
   {
      return CmbHCR ;
   }

   public void setCmbHCR( String value )
   {
      CmbHCR = value;
   }

   public String getCmbUUM( )
   {
      return CmbUUM ;
   }

   public void setCmbUUM( String value )
   {
      CmbUUM = value;
   }

   public java.util.Date getCmbFUM( )
   {
      return CmbFUM ;
   }

   public void setCmbFUM( java.util.Date value )
   {
      CmbFUM = value;
   }

   public String getCmbHUM( )
   {
      return CmbHUM ;
   }

   public void setCmbHUM( String value )
   {
      CmbHUM = value;
   }

   public byte getVEdoant( )
   {
      return VEdoant ;
   }

   public void setVEdoant( byte value )
   {
      VEdoant = value;
   }

   public void clear( )
   {
      VSel = 0 ;
      CmbCod = 0 ;
      CmbNom = "" ;
      CmbEst = "" ;
      CmbUCR = "" ;
      CmbFCR = GXutil.nullDate() ;
      CmbHCR = "" ;
      CmbUUM = "" ;
      CmbFUM = GXutil.nullDate() ;
      CmbHUM = "" ;
      VEdoant = 0 ;
   }

   public int compareTo( GXSubfileElement element ,
                         int column )
   {
      switch (column)
      {
            case 0 :
               if ( VSel > ((subwmntcmb04) element).getVSel() ) return 1;
               if ( VSel < ((subwmntcmb04) element).getVSel() ) return -1;
               return 0;
            case 1 :
               if ( CmbCod > ((subwmntcmb04) element).getCmbCod() ) return 1;
               if ( CmbCod < ((subwmntcmb04) element).getCmbCod() ) return -1;
               return 0;
            case 2 :
               return GXutil.strcmp( GXutil.upper( CmbNom ), GXutil.upper( ((subwmntcmb04) element).getCmbNom() ));
            case 3 :
               return GXutil.strcmp( GXutil.upper( CmbEst ), GXutil.upper( ((subwmntcmb04) element).getCmbEst() ));
            case 4 :
               return GXutil.strcmp( GXutil.upper( CmbUCR ), GXutil.upper( ((subwmntcmb04) element).getCmbUCR() ));
            case 5 :
               return GXutil.datecmp( CmbFCR , ((subwmntcmb04) element).getCmbFCR() );
            case 6 :
               return GXutil.strcmp( GXutil.upper( CmbHCR ), GXutil.upper( ((subwmntcmb04) element).getCmbHCR() ));
            case 7 :
               return GXutil.strcmp( GXutil.upper( CmbUUM ), GXutil.upper( ((subwmntcmb04) element).getCmbUUM() ));
            case 8 :
               return GXutil.datecmp( CmbFUM , ((subwmntcmb04) element).getCmbFUM() );
            case 9 :
               return GXutil.strcmp( GXutil.upper( CmbHUM ), GXutil.upper( ((subwmntcmb04) element).getCmbHUM() ));
            case 10 :
               if ( VEdoant > ((subwmntcmb04) element).getVEdoant() ) return 1;
               if ( VEdoant < ((subwmntcmb04) element).getVEdoant() ) return -1;
               return 0;
      }
      return 0;
   }

   public boolean isEmpty( )
   {
      return ( ( VSel == 0 ) && ( CmbCod == 0 ) && ( GXutil.strcmp(CmbNom, "") == 0 ) && ( GXutil.strcmp(CmbEst, "") == 0 ) && ( GXutil.strcmp(CmbUCR, "") == 0 ) && CmbFCR.equals( GXutil.nullDate() ) && ( GXutil.strcmp(CmbHCR, "") == 0 ) && ( GXutil.strcmp(CmbUUM, "") == 0 ) && CmbFUM.equals( GXutil.nullDate() ) && ( GXutil.strcmp(CmbHUM, "") == 0 ) && ( VEdoant == 0 ) )  ;
   }

   public void setColumn( GXComponent cell ,
                          int field )
   {
      switch (field) {
         case 0 :
            cell.setValue( VSel );
            break;
         case 1 :
            cell.setValue( CmbCod );
            break;
         case 2 :
            cell.setValue( CmbNom );
            break;
         case 3 :
            cell.setValue( CmbEst );
            break;
         case 4 :
            cell.setValue( CmbUCR );
            break;
         case 5 :
            cell.setValue( CmbFCR );
            break;
         case 6 :
            cell.setValue( CmbHCR );
            break;
         case 7 :
            cell.setValue( CmbUUM );
            break;
         case 8 :
            cell.setValue( CmbFUM );
            break;
         case 9 :
            cell.setValue( CmbHUM );
            break;
         case 10 :
            cell.setValue( VEdoant );
            break;
      }
   }

   public boolean isFieldChanged( GXComponent cell ,
                                  int field )
   {
      switch (field) {
         case 0 :
            return ( (((GUIObjectByte) cell).getValue() == VSel) );
         case 1 :
            return ( (((GUIObjectInt) cell).getValue() == CmbCod) );
         case 2 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),CmbNom) == 0) );
         case 3 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),CmbEst) == 0) );
         case 4 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),CmbUCR) == 0) );
         case 5 :
            return ( (((GUIObjectDate) cell).getValue().equals(CmbFCR)) );
         case 6 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),CmbHCR) == 0) );
         case 7 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),CmbUUM) == 0) );
         case 8 :
            return ( (((GUIObjectDate) cell).getValue().equals(CmbFUM)) );
         case 9 :
            return ( ( GXutil.strcmp(((GUIObjectString) cell).getValue(),CmbHUM) == 0) );
         case 10 :
            return ( (((GUIObjectByte) cell).getValue() == VEdoant) );
      }
      return false;
   }

   public void setField( int i ,
                         GXComponent value )
   {
      switch (i)
      {
            case 0 :
               VSel = value.getByteValue() ;
               break;
            case 1 :
               CmbCod = value.getIntValue() ;
               break;
            case 2 :
               CmbNom = value.getStringValue() ;
               break;
            case 3 :
               CmbEst = value.getStringValue() ;
               break;
            case 4 :
               CmbUCR = value.getStringValue() ;
               break;
            case 5 :
               CmbFCR = value.getDateValue() ;
               break;
            case 6 :
               CmbHCR = value.getStringValue() ;
               break;
            case 7 :
               CmbUUM = value.getStringValue() ;
               break;
            case 8 :
               CmbFUM = value.getDateValue() ;
               break;
            case 9 :
               CmbHUM = value.getStringValue() ;
               break;
            case 10 :
               VEdoant = value.getByteValue() ;
               break;
      }
   }

   public void setField( int i ,
                         GXSubfileElement element )
   {
      switch (i)
      {
            case 0 :
               VSel = ((subwmntcmb04) element).VSel;
               return;
            case 1 :
               CmbCod = ((subwmntcmb04) element).CmbCod;
               return;
            case 2 :
               CmbNom = ((subwmntcmb04) element).CmbNom;
               return;
            case 3 :
               CmbEst = ((subwmntcmb04) element).CmbEst;
               return;
            case 4 :
               CmbUCR = ((subwmntcmb04) element).CmbUCR;
               return;
            case 5 :
               CmbFCR = ((subwmntcmb04) element).CmbFCR;
               return;
            case 6 :
               CmbHCR = ((subwmntcmb04) element).CmbHCR;
               return;
            case 7 :
               CmbUUM = ((subwmntcmb04) element).CmbUUM;
               return;
            case 8 :
               CmbFUM = ((subwmntcmb04) element).CmbFUM;
               return;
            case 9 :
               CmbHUM = ((subwmntcmb04) element).CmbHUM;
               return;
            case 10 :
               VEdoant = ((subwmntcmb04) element).VEdoant;
               return;
      }
   }

}

